# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pluggy
_pkgname=pluggy
pkgver=0.13.1
pkgrel=9
pkgdesc='Plugin and hook calling mechanisms for python.'
url='https://pypi.org/project/pluggy/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-importlib-metadata')
makedepends=('python2-setuptools' 'python2-pip')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('eb747ff341cedacbd90eb20e22ad3d1ddf5588056f14d069f56331f4141a15b7eccaee23ea196d2f4906964ddb77a79b156bbf3ef8c8083e9952c55d13d55f3e')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

